package day03;

public class IfDemo {

    public static void main(String[] args) {
        /*
        double d = 34.4;
        int x=1,y=1,z=1;
        if  (x--==1&&y++==1||z++==1){
            System.out.println("x="+x+",y="+y+",z="+z);
    }
        int total = 0;
        for (int i = 0, j = 10; total > 30; ++i, --j) {
            System.out.println(" i = " + i + " : j = " + j);
            total += (i + j);
        }
        System.out.println("Total " + total);
        boolean b=true?false:true==true?false:true;
        System.out.println(b);
        int j=0;
        for(int i=0;i<100;i++){
            j=j++;
        }
        System.out.println(j);
        int f = 12;
        while (f < 10) {
            f--;
        }
        System.out.print(f);
        byte m=(byte)4096;
        System.out.print(m);



        for (int i = 0; i <= 10; i++) {
            if (i > 6) {
                break;
            }
            System.out.println(i);
        }

         */
        int d = 325;
        int sum = 0;
        while (d > 0) {
            int n = d % 10;
            sum += n;
            d /= 10;
        }
         System.out.println(sum);
        long j=8888;
        char c=74;

        String str=new String("bb");














        /*
        double num=900;
        if(num>=600){
            num*=0.9;
            System.out.println("折后价："+num);
        }else {
            System.out.println("不打折");
        }
        int score=80;
        if(score>=60&&score<=100){
            System.out.println("成绩合格");
        }else {
            System.out.println("成绩不合格");
        }
        int a=4;

         */

    }
}
